import Vue from 'vue'
import App from './App.vue'
import {initRouter} from './router'
import store from './store'
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
import '../src/assets/css/base.css'
import './utils/permission';//自定义指令
import bootstrap from './bootstrap'


// const router = initRouter(false)
const router = initRouter(store.state.asyncRoutes)
console.log('-=-----', store.state.asyncRoutes)
Vue.config.productionTip = false
Vue.use(Antd);
bootstrap({router})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')